import $http from '../request';

const URL_PREFIX = "/library/data";

export const $LibraryDataApi = {

  // 加载库数据
  loadLibraryData: (params) => {
    return $http.$post(URL_PREFIX + "/loadLibraryData", params, null)
  },

  // 批量保存知识库表格数据
  batchSaveLibraryData: (params) => {
    return $http.$post(URL_PREFIX + "/batchSave", params, null)
  },

  // 查询数据
  queryDataList: (params) => {
    return $http.$post(URL_PREFIX + "/queryDataList", params, {})
  },

  // 删除数据
  batchRemove: (params) => {
    return $http.$post(URL_PREFIX + "/batchRemove", params, {})
  },

  // 下载模板
  downloadTemplate: (params) => {
    return $http.downloadFile(URL_PREFIX + "/downloadTemplate", params, {})
  },


}